package org.xbdframework.sample.sso.authserver.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.xbdframework.sample.sso.authserver.model.Menu;
import org.xbdframework.sample.sso.authserver.model.Role;
import org.xbdframework.sample.sso.authserver.model.Users;

import java.util.List;

public interface UserInfoMapper extends BaseMapper<Users> {
    /**
     * 根据用户 Id 查询用户角色
     * @param id
     * @return
     */
    List<Role> selectRoleByUserId(Integer id);
    /**
     * 根据用户 Id 查询菜单
     * @param id
     * @return
     */
    List<Menu> selectMenuByUserId(Integer id);

}
